package com.example.demo.dto;

import com.example.demo.entity.OrdersManagement;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class OrderDTO {
    @JsonProperty("oId")
    private Integer oId;
    @JsonProperty("oGoodsId")
    private Integer oGoodsId;
    @JsonProperty("oUserIdOne")
    private Integer oUserIdOne; // 卖家ID
    @JsonProperty("oUserIdTwo")
    private Integer oUserIdTwo; // 买家ID
    @JsonProperty("oTotalAmount")
    private BigDecimal oTotalAmount;
    @JsonProperty("oStatus")
    private String oStatus;
    @JsonProperty("oCreateTime")
    private Date oCreateTime;

    // 商品信息
    @JsonProperty("productName")
    private String productName;
    @JsonProperty("productPrice")
    private BigDecimal productPrice; // 商品单价
    @JsonProperty("category")
    private String category;
    @JsonProperty("description")
    private String description;
}